<form method="post" enctype="multipart/form-data" action="{:U('/Case',array('id'=>$cases['id']))}">
    <div class="panel one-box">
    	<div class="table-tools clearfix">
			<div class="form-inline">
				<div class="form-group">
					<div class="field">
						标题：<input type="text" class="input" size="30" name="title" value="{$s_title}">
					
					</div>
				</div>
				<div class="form-button">
					<input type="submit" name="search" class="button bg-blue button-small" value="查询">
				</div>
			</div>
		</div>
    	
        <div class="table-responsive">
            <table id="table" class="table table-hover ">
                <tbody>
                    <tr>
                        <th>ID</th>
                        <th>昵称</th>
                        <th>头像</th>
                        <th>性别</th>
                        <th>宝宝名字</th>
                        <th>宝宝性别</th>
                        <th>出生日期</th>
                        <th>电话号码</th>
                        <th>上次登录时间</th>
						<th>推荐顾问</th>
                        <th>操作</th>
                    </tr>
                    <foreach name="list" item="v">
                        <tr>
                            <td>{$v.id}</td>
                            <td>{$v.nickname}</td>
                            <td><img width="30" height="30" src="{$v.headimgurl}"></td>
                            <td>
                                <if condition="$v.sex eq 1">男</if>
                                <if condition="$v.sex eq 2">女</if>
                            </td>
                            <td>{$v['binfo']['name']}</td>
                            <td>
                                <if condition="$v['binfo']['name'] eq 0">未知</if>
                                <if condition="$v['binfo']['name'] eq 1">男</if>
                                <if condition="$v['binfo']['name'] eq 2">女</if>
                            </td>
                            <td>{$v['binfo']['borntime']}</td>
                            <td>{$v.phone}</td>
                            <td>{$v.lasttime}</td>
                            <td>{$v.guwen}</td>
                            <td>
								<a class="button bg-blue button-small icon-pencil" title="修改" alt="修改" href="__ROOT__/admin.php/Case/edit/id/{$v['id']}"></a>
								<a class="button bg-red button-small icon-trash-o js-del" title="删除" alt="删除" target1="__ROOT__/admin.php/Case/delete/id/{$v['id']}" href="javascript:;"></a>
                            </td>
                        </tr>
                    </foreach>
                </tbody>
            </table>
        </div>
        <div class="panel-foot table-foot clearfix">
            <div class="float-right pagination pagination-small">
                {$pages}
            </div>
        </div>
    </div>
</form>